﻿

echo off
cls
set projectDirectory=%1
set destination=%2
set projectName=%3

echo copy all from: 
echo "%projectDirectory%StaticContent\*"
echo "%destination%"
echo -
echo -
echo "%projectDirectory%StaticContent\bin\debug\"
xcopy "%projectDirectory%bin\debug\*.dll" "%projectDirectory%StaticContent\bin\" /s /h /r /k /y 
xcopy "%projectDirectory%\StaticContent\*" "%destination%" /s /h /r /k /y 

echo done.
echo - 
echo -
echo packaging....
IF "%projectName%"=="" (
	set projectName="package"
) else (   
	echo zip to [%projectName%]
)
%projectDirectory%createpackage.bat - %projectName%.zip - - - "%projectDirectory%" "%projectName%"

echo on
